<?php

class Mline extends CI_Model {

    private $_table = 'line';
    public function __construct() {
        parent::__construct();
    }
    
    /**
     * Get the list of stations
     */
    public function getLines() {
        $query = $this->db->get($this->_table);        
        return $query->result_array();
    }
    
    public function insertLine($data) {
        $this->db->insert($this->_table, $data);
        return $this;
    }

}